﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data.SqlClient;

namespace Truextend.Training.Dao.Core
{
    /// <summary>
    /// Contains definition interface for Dao Service
    /// </summary>
    public interface IDaoService
    {
        #region All methods definition

        Object GetDBSession();
        void BeginTransaction();
        void CommitTransaction();
        void RollbackTransaction();
        bool IsClosed();
        Object ExecuteQuery(String query, params Object[] parameters);
        Object ExecuteInsertQuery(String query, params Object[] parameters);
        int ExecuteNonQuery(String query, params Object[] parameters);
        void Open();
        void Close();

        #endregion        
    }
}
